

import Layout from '@/layout'

const supermarketRouter = {
  path: '/supermarket',
  component: Layout,
  redirect: '/supermarket/index',
  name: 'Supermarket',
  children: [
    {
      path: 'category',
      component: () => import('@/views/supermarket/category/index.vue'),
      name: 'Category',
      meta: { title: '商品分类', icon: '' }
    },
    {
      path: 'scencExchange',
      component: () => import('@/views/supermarket/sceneExchange/index.vue'),
      name: 'ScencExchange',
      meta: { title: '现场兑换' }
    },
    {
      path: 'product',
      component: () => import('@/views/supermarket/product/index.vue'),
      name: 'Product',
      meta: { title: '超市商品管理'}
    },
    {
      path: 'location',
      component: () => import('@/views/supermarket/location/index.vue'),
      name: 'Location',
      meta: { title: '兑换地点' }
    },
    {
      path: 'inventory',
      component: () => import('@/views/supermarket/inventory/index.vue'),
      name: 'Inventory',
      meta: { title: '入库管理' }
    },
    {
      path: 'inventory1',
      component: () => import('@/views/supermarket/inventory1/index.vue'),
      name: 'Inventory1',
      meta: { title: '出库管理' }
    },
    {
      path: 'cityExchange',
      component: () => import('@/views/supermarket/cityExchange/index.vue'),
      name: 'CityExchange',
      meta: { title: '积分通兑账单' }
    },
    {
      path: 'monthlybill',
      component: () => import('@/views/supermarket/monthlybill/index.vue'),
      name: 'Monthlybill',
      meta: { title: '商家月度账单' }
    },
    {
      path: 'maintenance',
      component: () => import('@/views/supermarket/maintenance/index.vue'),
      name: 'Maintenance',
      meta: { title: '商家信息维护' }
    },
    {
      path: 'exchange',
      component: () => import('@/views/supermarket/exchange/index.vue'),
      name: 'exchange',
      meta: { title: '兑换记录' }
    }
  ]
}

export default supermarketRouter
